home *** CD-ROM | disk | FTP | other *** search
/ Speccy ClassiX 1998 / Speccy ClassiX 98.iso / amiga_system / the_aminet / dev / gcc / ixemulsrc.lha / ixemul-41.4 / gnulib-soft-float / fixunsdfsi.c < prev    next >
C/C++ Source or Header  |  1994-08-19  |  194b  |  13 lines

  1. #include "common.h"
  2.  
  3. #include "limits.h"
  4.  
  5. unsigned SItype
  6. __fixunsdfsi (a)
  7.      double a;
  8. {
  9.   if (a >= - (double) LONG_MIN)
  10.     return (SItype) (a + LONG_MIN) - LONG_MIN;
  11.   return (SItype) a;
  12. }
  13.